﻿@{
    ViewBag.Title = "嘉润主页";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section head {
    <style type="text/css">
        .grid_3
        {
            margin-top: 8px;
            margin-bottom: 8px;
            width: 78px;
            height: 82px;
            padding-top: 8px;
        }
        .center
        {
            background-color: #eff6fe !important;
        }
        .container_16
        {
            background: url(/Images/Desk_1.png) center no-repeat !important;
            height: 460px;
            margin: 10px auto;
            width: 500px;
            position: relative;
            text-align: center;
        }
        .container_16 a:hover
        {
            background: url(/Images/mms/HotBtnBack.jpg) center no-repeat;
            color: black;
            text-decoration: none;
            cursor: pointer;
        }
        .panel-tool
        {
            display: none;
        }
        ul
        {
            padding-top: 2px;
        }
        ul li
        {
            padding-left: 18px;
            line-height: 18px;
            background: url('/Content/css/icon/icon/arrow_right_16.png') no-repeat;
        }
        ul li a
        {
            cursor: pointer;
        }
    </style>
}
@section scripts{
    <script src="~/Areas/Pacm/ViewModels/Pacm.Home.js"></script>
    <script type="text/javascript">
        var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
        ko.bindingViewModel(new viewModel(data));
        function cellStyler(value,row,index){
            //if (value < 30){
            //background-color:#ffee00;color:red;
                return 'color:red;text-decoration:underline;';
           // }
        }
        //查看数据
         var formatterButton = function (value, row) {
                var dataStr = JSON.stringify({Aqjb_BillNo:row.Aqjb_BillNo});
                var html = '<a href="#" onclick=\'viewSJ(' + dataStr + ')\'><span class="icon icon-new">&nbsp;</span>查看</a>';
                return html;
           };
        $(function () {
            $('a').each(function () {
                var that = $(this), data = parent.$("body", parent.document).data("menulist");
                $.each(data || [], function () {
                    if (this.URL == that.attr('url')) {
                        that.attr('title', this.MenuName);
                        that.attr('icon', this.IconClass);
                    }
                });
            }).click(function () {
                var that = $(this);
                com.openTab(that.attr('title'), that.attr('url'), that.attr('icon'));
            });

            using('layout', function () {
                var box = $("#layoutbox");
                box.width($(window).width() - 4).height($(window).height() - 4).layout();
                $(window).resize(function () { box.width($(window).width() - 4).height($(window).height() - 4).layout('resize'); });
            });
        });
    </script>
}
<div id="layoutbox">
    <div region="center" class="center">
        <div class="container_16">
        </div>
    </div>
    <div data-options="region:'east',split:true,title:'工作中心',collapsible:false,iconCls:'icon-user-accept'"
        style="width: 210px;">
        <div class="easyui-accordion" data-options="fit:true,border:false">
            <div title="统计查询" style="padding: 10px;">
                <ul>
                    <li><a url="/weight/casting/index" style="font-size: 13px; font-weight: bold;" title="铸造检斤信息">
                        铸造检斤信息</a></li>
                    <li><a url="/weight/material/index" style="font-size: 13px; font-weight: bold;" title="物资检斤信息">
                        物资检斤信息</a></li>
                    <li><a url="/dev/report/sbtzAccount" style="font-size: 13px; font-weight: bold;"
                        title="设备台账信息">设备台账信息</a></li>
                    <li><a url="/pacm/scsj/index" style="font-size: 13px; font-weight: bold;" title="计算机日报表">
                        计算机日报表</a></li>
                </ul>
                <ul>
                    <li><a url="/pacm/scsj/RydlList" style="font-size: 13px; font-weight: bold;" title="日用电量查询">
                        日用电量查询</a></li>
                    <li><a url="/pacm/scsj/YydlList" style="font-size: 13px; font-weight: bold;" title="月用电量查询">
                        月用电量查询</a></li>
                    <li><a url="/pacm/scsj/CounterList" style="font-size: 13px; font-weight: bold;" title="电量采集信息">
                        电量采集信息</a></li>
                </ul>
                <ul>
                    <li><a url="/pacm/scsj/ChartAiList" style="font-size: 13px; font-weight: bold;" title="电表负荷曲线">
                        电表负荷曲线</a></li>
                    <li><a url="/pacm/scsj/ChartSlotUIList" style="font-size: 13px; font-weight: bold;"
                        title="电流电压曲线">电流电压曲线</a></li>
                </ul>
                  <ul>
                    <li><a url="/qms/FileContent/FileUsersList" style="font-size: 13px; font-weight: bold;" title="文档接收中心">
                        文档接收中心</a></li>
                </ul>
            </div>
            <div title="简报信息">
                <table id="gridlist" fit="true" data-bind="datagrid:grid">
                    <thead>
                        <tr>
                            <th field="Permit" align="center" width="60" formatter="formatterButton">
                                操作
                            </th>
                            <th field="Aqjb_Jbbt" sortable="true" align="left" styler="cellStyler" width="180">
                                简报标题
                            </th>
                        </tr>
                    </thead>
                </table>
            </div>
            @* <div title="预警信息" style="padding: 10px;">
                <ul>
                </ul>
            </div>
           <div title="日历中心">
                <div id="cc" class="easyui-calendar" fit="true">
                </div>
            </div>*@
        </div>
    </div>
</div>
